<?php
/**
 * Created by PhpStorm.
 * User: zsm
 * Date: 2018/5/14
 * Time: 11:41
 */
namespace Library\db;
abstract class Db{
    public static function factory($type){
        return call_user_func(__NAMESPACE__.'\\'.$type.'::getInstance');
    }

    abstract public function execute($query);

     abstract public function get_array($query);

     abstract public function insert_get_id($query);

     abstract public function clean($string);


}